﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ADIGRE.Domain;
using NHibernate.Mapping;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace ADIGRE.MVC3.Web.Controllers.ViewModels
{
    public class CultoViewModel
    {
        public Oferta Oferta { get; set; }
        public IList<Dizimo> Dizimos { get; set; }
        public IList<SelectListItem> Dizimistas { get; set; }
        [Display(Name = "Lançar data posterior a"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public DateTime? DtRetroativa { get; set; }

        public CultoViewModel()
        {
            this.Oferta = new Oferta();
            this.Dizimistas = new List<SelectListItem>();
            this.Dizimos = new List<Dizimo>();
            //listDizimo.Add(new Dizimo());
            //this.Dizimos = listDizimo;
        }
    }
}